package com.sgb.kjwl.view.ui.activity.self.userInfo;

import android.content.Context;
import android.content.Intent;
import android.view.View;

import androidx.databinding.DataBindingUtil;

import com.sgb.kjwl.AppActivity;
import com.sgb.kjwl.R;
import com.sgb.kjwl.databinding.ActivityApplyConfirmBinding;


public class ApplyConfirmActivity extends AppActivity {

    private ActivityApplyConfirmBinding binding;

    public static void start(Context context) {
        Intent intent = new Intent();
        intent.setClass(context, ApplyConfirmActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected boolean statusBarDark() {
        return true;
    }

    @Override
    protected void initView() {
        binding = DataBindingUtil.setContentView(this, R.layout.activity_apply_confirm);
        binding.include.ivBack.setOnClickListener(view -> {
            onBackPressed();
        });
        binding.include.titleView.setText("企业认证");
        binding.include.ivBack.setVisibility(View.INVISIBLE);
        binding.setEvent(new EventListener(this));
    }

    @Override
    protected void init() { }

    public class EventListener {
        ApplyConfirmActivity activity;

        public EventListener(ApplyConfirmActivity activity) {
            this.activity = activity;
        }

        public void onExit(View v) {
            finish();
//            activity.onBackPressed();
//            MainActivity.start(ApplyConfirmActivity.this);
        }

    }

}
